package vip.source.pattern.part03.normal;

import org.junit.jupiter.api.Test;

import java.math.BigDecimal;

/** @Description: 建造者模式测试 @Author: zy */
public class UnitTest {
    @Test
    public void test_DecorationPackageController() {
        DecorationPackageController decoration = new DecorationPackageController();
        // 豪华欧式
        System.out.println(decoration.getMatterList(new BigDecimal("132.52"), 1));

        // 轻奢田园
        System.out.println(decoration.getMatterList(new BigDecimal("98.25"), 2));

        // 现代简约
        System.out.println(decoration.getMatterList(new BigDecimal("85.43"), 3));
    }
}
